<?php /* Smarty version Smarty3-RC3, created on 2013-10-10 08:22:58
         compiled from ".\templates\rojmel.tpl" */ ?>
<?php /*%%SmartyHeaderCode:22748525663e2a114c9-61402123%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dde9c2483784d5dcd860ac9d331cede9a24413b0' => 
    array (
      0 => '.\\templates\\rojmel.tpl',
      1 => 1380876221,
    ),
  ),
  'nocache_hash' => '22748525663e2a114c9-61402123',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_select_date')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\function.html_select_date.php';
if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
if (!is_callable('smarty_modifier_date_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.date_format.php';
?> <?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
  <?php $_template = new Smarty_Internal_Template("headerPrint.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
<head>
<style>
.aavakColor
{
  color:red;
}
.javakColor
{
  color:green;
}
</style>	
<script type="text/javascript">
function deletechecked()
    {
      var answer = confirm("Delete Selected Recored ?")
      var answer1 = confirm("Are You Sure ?")
      if (answer && answer1)
      {
        document.messages.submit();
      }
      return false;
    }
 </script>
 </head>
<form name="form1" action="" method="post">

<input type="hidden" name="rojmelId" value="<?php echo $_smarty_tpl->getVariable('rojmelId')->value;?>
" />
<?php echo $_smarty_tpl->getVariable('l_from')->value;?>
 : <?php echo smarty_function_html_select_date(array('prefix'=>"fromDate",'start_year'=>"-2",'end_year'=>"+1",'field_order'=>"DMY",'time'=>$_smarty_tpl->getVariable('fromDate')->value,'day_value_format'=>"%02d"),$_smarty_tpl->smarty,$_smarty_tpl);?>

<?php echo $_smarty_tpl->getVariable('l_to')->value;?>
 : <?php echo smarty_function_html_select_date(array('prefix'=>"toDate",'start_year'=>"-2",'end_year'=>"+1",'field_order'=>"DMY",'time'=>$_smarty_tpl->getVariable('toDate')->value,'day_value_format'=>"%02d"),$_smarty_tpl->smarty,$_smarty_tpl);?>
&nbsp;&nbsp;&nbsp;
<input type="submit" name="find" value="<?php echo $_smarty_tpl->getVariable('l_find')->value;?>
" />
<div class="contentDiv">
  <table border="0" align="center" width="100%" cellspacing="0" cellpadding="2">
    <tr class="table1">
      <th colspan="4" class="aavakColor"><?php echo $_smarty_tpl->getVariable('l_credit')->value;?>
</th>
      <th>&nbsp;</th>
      <th colspan="4" class="javakColor"><?php echo $_smarty_tpl->getVariable('l_debit')->value;?>
</th>
    </tr>
    <tr>
      <td colspan="4" vAlign="top">
        <table border="0" align="center" width="100%" cellspacing="0" cellpadding="1" class="aavakColor">
          <tr class="table1">
            <th>&nbsp;</th>
            <th align="left"><?php echo $_smarty_tpl->getVariable('l_date')->value;?>
</th>
            <?php if ($_GET['print']!=1){?>
            <th align="left"><?php echo $_smarty_tpl->getVariable('l_particulars')->value;?>
</th>
            <?php }else{ ?>
            <th align="left">Parti</th>
            <?php }?>
            <th align="right"><?php echo $_smarty_tpl->getVariable('l_fine')->value;?>
</th>
            <th align="right"><?php echo $_smarty_tpl->getVariable('l_amount')->value;?>
</th>
          </tr>
          <tr class="table2">
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><?php echo $_smarty_tpl->getVariable('opening')->value['particular'];?>
</td>
            <td align="right"><?php if ($_smarty_tpl->getVariable('finalFineOpeningCr')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('finalFineOpeningCr')->value,"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
            <td align="right"><?php if ($_smarty_tpl->getVariable('finalAmountOpeningCr')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('finalAmountOpeningCr')->value,"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
          </tr>
          <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('rojmelDetailArray')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
            <tr class="table2">
              <td>
                <?php if ($_GET['print']!=1){?>
                  <a href="rojmelDelete.php?rojmelId=<?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rojmelIdCr'];?>
&rojmel=1" onClick="return deletechecked();"><img src="./images/b_drop.png" border="0" width="15" height="15"></a>
                  <a href="rojmelEntry.php?rojmelId=<?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rojmelIdCr'];?>
"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
                <?php }else{ ?>
                  &nbsp;
                <?php }?>
              </td>
              <td NOWRAP><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rojmelDateCr'],"%e-%b-%Y");?>
</td>
              <td>( <?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyNameCr'];?>
 )&nbsp; <?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['particularCr'];?>
</td>
              <td align="right" style="border-right:1px solid;"><?php if ($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fineCr']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fineCr'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
              <td align="right"><?php if ($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amountCr']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amountCr'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
            </tr>
          <?php endfor; endif; ?>
          <tr>
            <td colspan="10"><hr style="color: #778899; background-color: #778899;" /></td>
          </tr>
          <tr class="table2">
          	<th>&nbsp;</th>
          	<th>&nbsp;</th>
            <th><?php echo $_smarty_tpl->getVariable('l_total')->value;?>
</th>
            <th align="right"><?php if ($_smarty_tpl->getVariable('totalCrFine')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('totalCrFine')->value,"%.0f");?>
<?php }else{ ?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['crFine'],"%.0f");?>
<?php }?></th>
            <th align="right"><?php if ($_smarty_tpl->getVariable('totalCrAmount')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('totalCrAmount')->value,"%.0f");?>
<?php }else{ ?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['crAmount'],"%.0f");?>
<?php }?></th>
          </tr>
          <tr><hr style="color: #778899; background-color: #778899;" /></tr>
        </table>
        <td>&nbsp;</td><td>&nbsp;</td>
        <td style="border-left: 1px solid black; padding: 5px;">
        <td colspan="4" vAlign="top">
        <table border="0" align="center" width="100%" cellspacing="0" cellpadding="1" class="javakColor">
          <tr class="table1"><hr style="color: #778899; background-color: #778899;" />
            <th>&nbsp;</th>
            <th align="left"><?php echo $_smarty_tpl->getVariable('l_date')->value;?>
</th>
            <?php if ($_GET['print']!=1){?>
            <th align="left"><?php echo $_smarty_tpl->getVariable('l_particulars')->value;?>
</th>
            <?php }else{ ?>
            <th align="left">Parti</th>
            <?php }?>
            <th align="right"><?php echo $_smarty_tpl->getVariable('l_fine')->value;?>
</th>
            <th align="right"><?php echo $_smarty_tpl->getVariable('l_amount')->value;?>
</th>
          </tr>
          <tr class="table2">
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><?php echo $_smarty_tpl->getVariable('opening')->value['particular'];?>
</td>
            <td align="right"><?php if ($_smarty_tpl->getVariable('finalFineOpeningDr')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('finalFineOpeningDr')->value,"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
            <td align="right"><?php if ($_smarty_tpl->getVariable('finalAmountOpeningDr')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('finalAmountOpeningDr')->value,"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
          </tr>
          <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('rojmelDetailArray')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
            <tr class="table2">
              <td>
                <?php if ($_GET['print']!=1){?>
                  <a href="rojmelDelete.php?rojmelId=<?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rojmelId'];?>
&rojmel=1" onClick="return deletechecked();"><img src="./images/b_drop.png" border="0" width="15" height="15"></a>
                  <a href="rojmelEntry.php?rojmelId=<?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rojmelId'];?>
"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
                <?php }else{ ?>
                  &nbsp;
                <?php }?>
              </td>
              <td NOWRAP><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rojmelDate'],"%e-%b-%Y");?>
</td>
              <td>( <?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyName'];?>
 )&nbsp; <?php echo $_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['particular'];?>
</td>
              <td align="right" style="border-right:1px solid;"><?php if ($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fineDr']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fineDr'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
              <td align="right"><?php if ($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amountDr']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('rojmelDetailArray')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amountDr'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
            </tr>
          <?php endfor; endif; ?>
          <tr>
            <td colspan="10"><hr style="color: #778899; background-color: #778899;" /></td>
          </tr>
          <tr class="table2">
            <th>&nbsp;</th>
            <th>&nbsp;</th>
            <th><?php echo $_smarty_tpl->getVariable('l_total')->value;?>
</th>
            <th align="right"><?php if ($_smarty_tpl->getVariable('totalDrFine')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('totalDrFine')->value,"%.0f");?>
<?php }else{ ?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['drFine'],"%.0f");?>
<?php }?></th>
            <th align="right"><?php if ($_smarty_tpl->getVariable('totalDrAmount')->value!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('totalDrAmount')->value,"%.0f");?>
<?php }else{ ?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['drAmount'],"%.0f");?>
<?php }?></th>
          </tr>
        </table>
      </td>
    </tr>
    <tr><hr style="color: #778899; background-color: #778899;" /></tr>
    <tr><td colspan="10"><hr style="color: #778899; background-color: #778899;" /></td></tr>
    <tr>
      <td colspan="9">
        <b style="color:green;"><?php if ($_smarty_tpl->getVariable('netFine')->value>=0){?> Total Debit Fine:<?php }else{ ?> Total Credit Fine:<?php }?> <?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('netFine')->value,"%.0f");?>
</b>&nbsp;&nbsp;&nbsp;&nbsp;<b style="color:red;"><?php if ($_smarty_tpl->getVariable('netAmount')->value>=0){?> Total Debit Amount:<?php }else{ ?> Total Credit Amount:<?php }?>  <?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('netAmount')->value,"%.0f");?>
</b>
      </td>
    </tr>
  </table>
</div>
</form>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>